package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.CooperateCompany;
import org.jeecg.modules.company.facade.ICooperateCompanyFacade;
import org.jeecg.modules.company.service.ICooperateCompanyService;
import org.jeecg.modules.company.vo.CooperateCompanyVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 合作公司包含客户和供货商
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class CooperateCompanyFacadeImpl extends IFacadeImpl<CooperateCompanyVo, CooperateCompany, ICooperateCompanyService>  implements ICooperateCompanyFacade<CooperateCompanyVo, CooperateCompany> {
        @Autowired
        private ICooperateCompanyService cooperateCompanyService;


         @Override
         public CooperateCompany po2Vo(CooperateCompanyVo vo) {
                CooperateCompany po = new CooperateCompany();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public CooperateCompanyVo vo2Po(CooperateCompany po) {
                CooperateCompanyVo vo = new CooperateCompanyVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
